home *** CD-ROM | disk | FTP | other *** search
- .\" Sccs id goes here
- '\"macro stdmacro
- .\" Copyright (c) 1995, Sun Microsystems, Inc.
- .\" All Rights Reserved
- .nr X
- .TH pam_unix 5 "19 October 1995"
- .SH NAME
- pam_unix \- authentication, account, session, and password management PAM modules for UNIX
- .SH SYNOPSIS
- .LP
- .B /usr/lib/security/pam_unix.so
- .LP
- .SH DESCRIPTION
- .IX "pam_unix" "" "\fLpam_unix\fP \(em authentication, account, session and password management for UNIX"
- .PP
- The UNIX service module for PAM,
- .I /usr/lib/security/pam_unix.so,
- provides functionality for all four
- PAM modules: The
- .I authentication
- module, the
- .I account management
- module, the
- .I session management
- module, and the
- .I password management
- module.
- The pam_unix.so module is a shared object
- that can be dynamically loaded to provide
- the necessary functionality upon demand.
- Its path is specified in the
- .B PAM
- configuration file.
-
- .SH Unix Authentication Module
- The UNIX authentication component
- provides functions to verify the identity of a user,
- .B (pam_sm_authenticate())
- and to set user specific credentials
- .B (pam_sm_setcred()).
- .B pam_sm_authenticate()
- compares the user entered password with the password from UNIX password
- database. If the passwords match, the user is authenticated.
- The following options may be passed to the UNIX service module:
- .RS
- .IP debug 15
- .B syslog(3)
- debugging information at LOG_DEBUG level
- .IP nowarn 15
- turn off warning messages
- .IP use_first_pass 15
- It compares the password in the password database with the user's initial
- password (entered when the user authenticated to the first authentication
- module in the stack). If the passwords do not match, or if no password
- has been entered,
- quit and do not prompt the user for a password. This option should
- only be used if the authentication service is designated as
- .I optional
- in the
- .B pam.conf
- configuration file.
- .IP try_first_pass 15
- It compares the password in the password database with the user's initial
- password (entered when the user authenticated to the first authentication
- module in the stack). If the passwords do not match, or if no password
- has been entered,
- prompt the user for a password.
- .RE
-
- The
- .B pam_sm_setcred()
- function sets user specific credentials.
- For UNIX, this is a NULL function.
-
- .SH Unix Account Management Module
- The UNIX account management component
- provides a function to perform account management
- .B (pam_sm_acct_mgmt()).
- The
- .B pam_sm_acct_mgmt()
- function
- retrieves the user's password entry from the UNIX password database
- and verifies that the user's account and password
- have not expired.
- The following option may be passed in to the UNIX service module:
- .RS
- .IP debug 15
- .B syslog(3)
- debugging information at LOG_DEBUG level
- .IP nowarn 15
- turn off warning messages
- .RE
-
- .SH Unix Session Management Module
- The UNIX session management component
- provides functions to initiate
- .B (pam_sm_open_session())
- and terminate
- .B (pam_sm_close_session())
- UNIX sessions.
- Currently for UNIX, these functions are empty.
- The following option may be passed in to the UNIX service module:
- .RS
- .IP debug 15
- .B syslog(3)
- debugging information at LOG_DEBUG level
- .IP nowarn 15
- turn off warning messages
- .RE
-
- .SH Unix Password Management Module
- The UNIX password management component
- provides a function to change passwords
- .B (pam_sm_chauthtok())
- in the UNIX password database.
-
- This module must be
- .I required
- in
- .B pam.conf.
- It can not be
- .I optional
- or
- .I sufficient.
-
- The following option may be passed in to the UNIX service module:
- .RS
- .IP debug 15
- .B syslog(3)
- debugging information at LOG_DEBUG level
- .IP nowarn 15
- turn off warning messages
- .IP use_first_pass 15
- It compares the password in the password database with the user's old
- password (entered to the first password module in the stack).
- If the passwords do not match, or if no password has been entered,
- quit and do not prompt the user for the old password. It also attempts
- to use the new password (entered to the first password module in the stack)
- as the new password for this module. If the new password fails,
- quit and do not prompt the user for a new password.
- .IP try_first_pass 15
- It compares the password in the password database with the user's old
- password (entered to the first password module in the stack).
- If the passwords do not match, or if no password has been entered,
- prompt the user for the old password. It also attempts
- to use the new password (entered to the first password module in the stack)
- as the new password for this module. If the new password fails,
- prompt the user for a new password.
- .RE
-
- .SH "SEE ALSO"
- .BR pam (3),
- .BR pam_authenticate (3),
- .BR pam_setcred (3),
- .BR syslog (3),
- .BR pam.conf (4)
-